<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>shopping</title>
</head>
<body>
    <table border="1" rules="all" width="400px" height="300px" align="center" style="text-align: center">
        <caption>购物车</caption>
        <tr>
            <td rowspan="2">名称</td>
            <td colspan="2">2016-11-22</td>
            <td rowspan="2">小计</td>
        </tr>
        <tr>
            <td>重量</td>
            <td>单价</td>
        </tr>
        <tr>
            <td>苹果</td>
            <td>3</td>
            <td>5</td>
            <td>15</td>
        </tr>
        <tr>
            <td>香蕉</td>
            <td>2</td>
            <td>6</td>
            <td>12</td>
        </tr>
        <tr>
            <td colspan="3">总价</td>
            <td>27</td>
        </tr>
    </table>
</body>
</html>